package cn.edu.lcu.cs.javaprogramming.collection;

import cn.edu.lcu.cs.javaprogramming.oop.User;

import java.time.LocalDate;
import java.util.List;

/**
 * TODO 这里是文档说明，如果未提供，把本行删除。
 *
 * @author ling
 * @date 2022/5/16 23:08
 */
public class UserUtil {
    public static List<User> getUsers() {
        User zhangsan = User.builder()
                .id(1L)
                .birthdate(LocalDate.of(2000, 1, 1))
                .name("zhangsan")
                .realName("张三")
                .password("123456")
                .salary(1550.)
                .build();
        User lisi = User.builder()
                .id(2L)
                .birthdate(LocalDate.of(2001, 1, 1))
                .name("lisi")
                .realName("李四")
                .password("123456")
                .salary(2550.)
                .build();
        List<User> users = List.of(zhangsan, lisi);
        return users;
    }
}
